import { createRouter, createWebHistory } from 'vue-router'
import { routes } from './routes'

const htmlName = '00000000'
const str = htmlName.slice(htmlName.length - (htmlName.length - ACTIVITYID.length))
const indexPath = str + ACTIVITYID
const router = createRouter({
  history: createWebHistory(
    process.env.NODE_ENV === 'production' ? `/activity/${indexPath}.html` : ''
  ),
  routes
})

export default router
